package com.team11.server.controller.teacher;

import com.team11.server.pojo.dto.RespPageBean;
import com.team11.server.pojo.dto.SkRecord;
import com.team11.server.pojo.dto.vo.SkRecordVo;
import com.team11.server.service.ISkInformationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.time.LocalDate;


/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author pjc
 * @since 2021-06-14
 */
@CrossOrigin
@RestController
@RequestMapping("/teacher")
@Api(tags = "教师接口")
public class TeacherSkInformationController {

    @Autowired
    private ISkInformationService skInformationService;

    @ApiOperation(value = "项目课程表：教师查看实训项目课程信息(分页)")
    @PostMapping("/getSkRecord")
    public RespPageBean getSkRecord(@RequestParam(defaultValue = "1") Integer currentPage,
                                    @RequestParam(defaultValue = "10") Integer size,
                                    SkRecordVo skRecordVo) {
        return skInformationService.getSkRecordByPage(currentPage, size,skRecordVo);
    }

}
